package com.dd.web.base.entity.data;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ApiModel("管理员对象")
public class UmsAdmin  implements Serializable {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty(value="用户名")
    private String username;
    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "备注信息")
    private String note;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "最后登录时间")
    private Date loginTime;

    @ApiModelProperty(value = "帐号启用状态：0->禁用；1->启用")
    private Integer status;
    @ApiModelProperty("手机号")
    private int phone;


    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {

        return JSONObject.toJSONString(this);
    }
}